﻿#folderTemplate {
  .dialogContent {
    padding: 0 0 20px 0;
  }
  .folderTemplateSidebar {
    font-size: 13px;
    box-sizing: border-box;
    padding: 0 10px 14px;
    width: 145px;
    overflow-x: hidden;
    overflow-y: auto;
    height: 400px;
    li {
      width: 100%;
      height: 42px;
      line-height: 42px;
      margin-top: 10px;
      cursor: pointer;
      &:hover {
        background: #f5f5f5;
      }
      &.ThemeColor3 {
        font-size: 14px;
      }
      &:not(.ThemeColor3) {
        i {
          color: #9e9e9e;
        }
      }
      i {
        width: 18px;
        height: 18px;
        margin: 12px 10px 0;
        display: inline-block;
        vertical-align: top;
        font-size: 18px;
      }
    }
  }
  .folderTemplateList {
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    height: 400px;
    li {
      float: left;
      margin: 10px 0 14px 24px;
      height: 100px;
      width: 170px;
      color: #fff;
      align-items: center;
      display: flex;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      background-size: 170px 100px;
      background-position: top right;
      background-repeat: no-repeat;
      &:hover:not(.folderTemplateNull) {
        .folderTemplateItem {
          display: none;
        }
        .folderTemplateDesc {
          top: 0;
        }
        .folderTemplateOperator {
          opacity: 1;
        }
      }
      .folderTemplateItem {
        width: 100%;
        box-sizing: border-box;
        padding: 0 10px;
        font-size: 15px;
        text-align: center;
        &.folderTemplateItemPosition {
          position: absolute;
          bottom: 5px;
          left: 0;
          z-index: 2;
          text-align: left;
        }
      }
      .folderTemplateBG {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        z-index: 1;
        background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
      }
      .folderTemplateDesc {
        transition: all 0.3s ease-in-out;
        background: rgba(51, 51, 51, 0.8);
        position: absolute;
        left: 0;
        top: 100px;
        height: 100px;
        width: 170px;
        box-sizing: border-box;
        padding: 12px;
        font-size: 13px;
        z-index: 3;
        div {
          overflow: hidden;
          max-height: 54px;
          line-height: 18px;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-line-clamp: 3;
          -webkit-box-orient: vertical;
          word-break: break-all;
        }
      }
      .folderTemplateOperator {
        position: absolute;
        right: 0;
        text-align: right;
        bottom: 8px;
        z-index: 4;
        opacity: 0;
        transition: all 0.3s ease-in-out;
        span {
          width: 28px;
          height: 20px;
          display: inline-block;
          margin-right: 8px;
          text-align: center;
          background: #fff;
          border-radius: 2px;
          font-size: 14px;
          &:not(:hover) {
            color: #757575 !important;
          }
        }
      }
    }
    .folderTemplateNull {
      box-sizing: border-box;
      border-width: 1px;
      border-style: solid;
      &:not(:hover) {
        border-color: #ccc !important;
        .folderTemplateItem {
          color: #888;
        }
      }
      .icon-addapplication {
        font-size: 20px;
        margin-right: 8px;
      }
    }
  }
}
